import request from '@/utils/request'

export const FindByPage = (pageNum,pageSize,sysUserDto)=>{
    return request({
        url:`/admin/system/sysUser/findByPage/${pageNum}/${pageSize}`,
        method:'post',
        data:sysUserDto
    })
}

export const AddUser = (sysUser)=>{
    return request({
        url:`/admin/system/sysUser/addUser`,
        method:'post',
        data:sysUser
    })
}

export const EditUser = (sysUser)=>{
    return request({
        url:`/admin/system/sysUser/editUser`,
        method:'post',
        data:sysUser
    })
}

export const DeleteUser = (id)=>{
    return request({
        url:`/admin/system/sysUser/deleteById/${id}`,
        method:'delete',
    })
}